﻿#ifndef TLVCODEPANEL_H
#define TLVCODEPANEL_H

#include <QWidget>
#include "stores/TlvProject/TlvDataModelTypeDef.h"

namespace Ui {
class TlvCodePanel;
}

class TlvCodePanel : public QWidget
{
    Q_OBJECT

public:
    explicit TlvCodePanel(QWidget *parent = nullptr);
    ~TlvCodePanel();

    void setTitle(const QString& title);
    void setCode(const QString& code);

    CodePageModel toCodeModel();

private slots:
    void on_btnRun_clicked();

private:
    Ui::TlvCodePanel *ui;
    QString m_title;
};

#endif // TLVCODEPANEL_H
